package com.power.sifa.approve.api;

import com.plf.common.domain.ResponseDTO;
import com.power.sifa.approve.model.Aprv_materials_customer;
import com.power.sifa.approve.model.pageInfo.Aprv_materials_customerPageInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  自定义过程材料 Feign
 */
public interface IAprv_materials_customerFeign {

    /**
     * 自定义过程材料分页列表
     */
    @PostMapping("/aprv_materials_customer/list")
    ResponseDTO list(@RequestBody Aprv_materials_customerPageInfo aprv_materials_customerPageInfo);

    /**
    * 查看自定义过程材料
    */
    @GetMapping("/aprv_materials_customer/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除自定义过程材料
    */
    @PostMapping("/aprv_materials_customer/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看自定义过程材料 复合主键使用
    // */
    //@PostMapping("/aprv_materials_customer/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Aprv_materials_customer.Aprv_materials_customerPK pk);

    /**
     * 修改或保存自定义过程材料
     */
    @PostMapping("/aprv_materials_customer/save")
    ResponseDTO save(@RequestBody Aprv_materials_customer aprv_materials_customer);

    ///**
    // * 删除自定义过程材料 复合主键使用
    // */
    //@PostMapping("/aprv_materials_customer/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Aprv_materials_customer.Aprv_materials_customerPK pk);
    
    /**
     * 批量删除自定义过程材料
     */
    @PostMapping("/aprv_materials_customer/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);
    
     /**
     * 导出excel
     */
    @PostMapping("/aprv_materials_customer/output")
    void output(HttpServletResponse response, @RequestBody Aprv_materials_customerPageInfo aprv_materials_customerPageInfo);
        
     /**
     * 导出excel模板
     */
    @PostMapping("/aprv_materials_customer/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);
    
     /**
     *	导入excel
     */
    @PostMapping("/aprv_materials_customer/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;


    /**
     * 通过applyid查询自定义材料类型
     * @param applyid
     * @return
     */
    @PostMapping("/aprv_materials_customer/queryCustomerMaterialByApplyid")
    ResponseDTO queryCustomerMaterialByApplyid(@RequestParam("applyid") String applyid);


    /**
     * 删除自定义过程材料
     * @param id
     * @return
     */
    @PostMapping("/aprv_materials_customer/deleteCustomer")
    ResponseDTO deleteCustomer(@RequestParam("id") String id);
    
}
